﻿using System;

namespace Microsoft.Xna.Framework
{
    /// <summary>
    /// 	Arguments used with events from the GameComponentCollection.
    /// </summary>
    public class GameComponentCollectionEventArgs : EventArgs
    {
        #region Fields & Properties

        private readonly IGameComponent _gameComponent;

        /// <summary>
        /// 	The game component affected by the event.
        /// </summary>
        public IGameComponent GameComponent
        {
            get
            {
                return _gameComponent;
            }
        }

        #endregion

        #region Constructors

        /// <summary>
        /// 	Creates a new instance of GameComponentCollectionEventArgs.
        /// </summary>
        /// <param name = "gameComponent">The game component affected by the event.</param>
        public GameComponentCollectionEventArgs(IGameComponent gameComponent)
        {
            _gameComponent = gameComponent;
        }

        #endregion
    }
}